//
//  ZSY_CityModel.m
//  zsy_BreadTrip
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "ZSY_CityModel.h"

@implementation ZSY_CityModel

- (void)dealloc {
    [_address release];
    [_tab_list release];
    [_status release];
    [_title_page release];
    [_like_count release];
    [_user release];
    [_userModel release];
    [_title release];
    [_sold_count release];
    [_date_str release];
    [_price release];
    [_stock release];
    [super dealloc];
}

//- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
//    if ([key isEqualToString:@"user"]) {
//        [self.userModel setValuesForKeysWithDictionary:value];
//    }
//}

- (instancetype)init {
    self = [super init];
    if (self) {
        self.userModel = [[ZSY_HomeUserModel alloc] init];
    }
    return self;
}

- (void)setUser:(NSMutableDictionary *)user {
    [self.userModel setValuesForKeysWithDictionary:user];
}

@end
